/*
Copyright 2019 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

:root {
  --spectrum-font-fallbacks-sans: adobe-clean, 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Trebuchet MS', 'Lucida Grande', sans-serif;

  /* Not used
  --spectrum-font-fallbacks-serif: serif;
  --spectrum-font-fallbacks-mono: monospace;
  --spectrum-font-family-article: adobe-clean-serif, 'Source Serif', var(--spectrum-font-fallbacks-serif);
  --spectrum-font-family-article-ar: adobe-arabic, var(--spectrum-font-fallbacks-serif);
  --spectrum-font-family-article-he: adobe-hebrew, var(--spectrum-font-fallbacks-serif);
  --spectrum-font-family-article-ja: source-han-serif-japanese, var(--spectrum-font-fallbacks-serif);
  --spectrum-font-family-article-ko: source-han-serif-korean, var(--spectrum-font-fallbacks-serif);
  --spectrum-font-family-article-zh-hans: source-han-serif-sc, var(--spectrum-font-fallbacks-serif);
  --spectrum-font-family-article-zh-hant: source-han-serif-tc, 'MingLiu', var(--spectrum-font-fallbacks-serif);
  --spectrum-font-family-code: source-code-pro, 'Source Code Pro', var(--spectrum-font-fallbacks-mono);
  --spectrum-font-family-condensed: adobe-clean-condensed, var(--spectrum-font-family-base);
  */

  --spectrum-font-family-base: var(--spectrum-font-fallbacks-sans);
  --spectrum-font-family-han: 'adobe-clean-han-japanese', var(--spectrum-font-fallbacks-sans);
  --spectrum-font-family-ar: 'myriad-arabic', var(--spectrum-font-fallbacks-sans);
  --spectrum-font-family-he: 'myriad-hebrew', var(--spectrum-font-fallbacks-sans);
  --spectrum-font-family-zhhans: adobe-clean-han-simplified-c, source-han-simplified-c, 'SimSun', 'Heiti SC Light', sans-serif;
  --spectrum-font-family-zh: adobe-clean-han-traditional, source-han-traditional, 'MingLiu', 'Heiti TC Light', sans-serif;
  --spectrum-font-family-zhhant: adobe-clean-han-traditional, source-han-traditional, 'MingLiu', 'Microsoft JhengHei UI', 'Microsoft JhengHei', 'Heiti TC Light', sans-serif;
  --spectrum-font-family-ko: adobe-clean-han-korean, source-han-korean, 'Malgun Gothic', 'Apple Gothic', sans-serif;
  --spectrum-font-family-ja: adobe-clean-han-japanese, 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Osaka, YuGothic, 'Yu Gothic', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
  --spectrum-text-size: var(--spectrum-alias-font-size-default);
  --spectrum-text-body-line-height: var(--spectrum-alias-line-height-medium);
  --spectrum-text-size-text-label: var(--spectrum-label-text-size);
  --spectrum-line-height-text-label: var(--spectrum-label-text-line-height);
}

.i18nFontFamily {
  font-family: var(--spectrum-font-family-base);
  font-synthesis: weight;

  &:lang(ar) {
    font-family: var(--spectrum-font-family-ar);
  }

  &:lang(he) {
    font-family: var(--spectrum-font-family-he);
  }

  &:lang(zh) {
    font-family: var(--spectrum-font-family-zh);
  }

  &:lang(zh-Hans) {
    font-family: var(--spectrum-font-family-zhhans);
  }

  &:lang(zh-Hant) {
    font-family: var(--spectrum-font-family-zhhant);
  }

  &:lang(zh-SG) {
    font-family: var(--spectrum-font-family-zhhans);
  }

  &:lang(zh-CN) {
    font-family: var(--spectrum-font-family-zhhans);
  }

  &:lang(ko) {
    font-family: var(--spectrum-font-family-ko);
  }

  &:lang(ja) {
    font-family: var(--spectrum-font-family-ja);
  }
}
